<?
	$params[sid] = $sid;
	$params[action] = "editTemplate";
	$url = "$baseURL/$webDIR/?".encode_params($params);
	$data = get_interface_settings($id);
	if(is_array($data))
		while(list($k,$v) = each($data)){
			$$k = $v;
		}
	switch($template){
		case "0": $ch[1] = "checked"; break;
	}

	if($errorMsg) echo "<center>$errorMsg<center>";
	$errorMsg = "";
?>
<TABLE border=1 class='bTable' cellspacing='0' width='750'>
<form action='<?=$url;?>' method='POST'>
	<TR>
		<TH colspan='2'>Teplate file</TH>
	</TR>
	<TR>
		<TD align='center'>
			<table border=0>
				<tr align='center'>
					<td>
					<img src='../images/t1.JPG'><br>
						<input type='radio' name='template' value='0' <?=$ch[1];?> >
					</td>
				</tr>
			</table>
		</TD>
	</TR>
	<TR>
		<TD  align='center' colspan='2'>
			<input type='submit' value='Submit'>
		</TD>
	</TR>
</form>
</TABLE>

